/* ========================================
   登录页面样式
   ======================================== */

/* 登录页面容器 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

/* 登录表单容器 */
.login-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

/* 表单标题 */
.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

/* 表单字段组 */
.form-group {
  margin-bottom: 20px;
}

/* 表单标签 */
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

/* 表单输入框 */
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

/* 输入框焦点状态 */
.form-group input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* 密码输入区域容器 */
.password-container {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* 密码输入框 */
.password-container input {
  flex: 1;
}

/* 验证按钮 */
.captcha-btn {
  padding: 12px 20px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
  white-space: nowrap;
  min-width: 80px;
}

/* 验证按钮悬停状态 */
.captcha-btn:hover {
  background: #40a9ff;
  transform: translateY(-1px);
}

/* 验证按钮激活状态 */
.captcha-btn:active {
  transform: translateY(0);
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  padding: 14px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 10px;
}

/* 登录按钮悬停状态 */
.login-btn:hover:not(:disabled) {
  background: #40a9ff;
  transform: translateY(-1px);
}

/* 登录按钮激活状态 */
.login-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* 登录按钮禁用状态 */
.login-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  transform: none;
}

/* 消息提示框 */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
  font-weight: 500;
}

/* 成功消息样式 */
.message.success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

/* 错误消息样式 */
.message.error {
  background: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}

/* 验证状态显示 */
.verification-status {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
}

/* 已验证状态 */
.verification-status .verified {
  color: #52c41a;
}

/* 未验证状态 */
.verification-status .unverified {
  color: #ff4d4f;
}

/* ========================================
   验证区域样式
   ======================================== */

/* 验证区域容器 */
.captcha-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  padding: 8px;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(225, 229, 233, 0.5);
}

/* 验证触发按钮 */
.captcha-trigger {
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e1e5e9;
  background: #f8f9fa;
  padding: 0 16px;
  min-width: 120px;
}

/* 验证触发按钮悬停状态 */
.captcha-trigger:hover:not(.verified) {
  background: #e9ecef;
  border-color: #1890ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

/* 已验证状态样式 */
.captcha-trigger.verified {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
  border-color: #52c41a;
  cursor: default;
  animation: verifiedPulse 2s ease-in-out;
}

/* 验证成功脉冲动画 */
@keyframes verifiedPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(82, 196, 26, 0);
  }
}

/* 验证状态文本 */
.captcha-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* 已验证状态文本 */
.captcha-status.verified {
  color: #52c41a;
}

/* 未验证状态文本 */
.captcha-status.unverified {
  color: #666;
}

/* 验证状态图标 */
.captcha-icon {
  font-size: 16px;
}

/* 重新验证按钮 */
.captcha-reset-btn {
  color: #1890ff !important;
  border: none;
  background: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 重新验证按钮悬停状态 */
.captcha-reset-btn:hover {
  background: rgba(24, 144, 255, 0.1) !important;
  color: #40a9ff !important;
  transform: translateY(-1px);
}

/* 重新验证图标 */
.reset-icon {
  margin-right: 4px;
  font-size: 14px;
}

/* 响应式设计 */
/* ========================================
   响应式设计
   ======================================== */

/* 移动端样式 (最大宽度 480px) */
@media (max-width: 480px) {
  .login-form {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .password-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .captcha-btn {
    width: 100%;
  }
  
  .captcha-container {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .captcha-trigger {
    width: 100%;
    min-width: auto;
  }
  
  .captcha-reset-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 平板端样式 (最大宽度 768px) */
@media (max-width: 768px) {
  .captcha-container {
    gap: 8px;
  }
  
  .captcha-trigger {
    min-width: 100px;
    padding: 0 12px;
  }
  
  .captcha-status {
    font-size: 13px;
  }
} 